package mesweb.mesweb.service.produce;

import cn.hutool.core.date.DateUnit;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import mesweb.mesweb.entity.produce.ProduceCalendar;
import mesweb.mesweb.vo.produce.ProduceCalendarVo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * @Description: 生产日历
 * @Author: jeecg-boot
 * @Date:   2021-08-21
 * @Version: V1.0
 */
public interface IProduceCalendarService extends IService<ProduceCalendar> {
    IPage<ProduceCalendarVo> getProduceCalendars(Page page, @Param("ew") QueryWrapper queryWrapper);
    List<ProduceCalendarVo> getProduceCalendars(@Param("ew") QueryWrapper queryWrapper);
    Date getDate(Date StartDate, float duration, DateUnit dateUnit,Long  produceCalendarId);
    Float getMonthWorkhours(Date date,Long  produceCalendarId);

}
